﻿package mortal.game.view.signUp.sevenDayLogin.panel
{
    import com.mui.controls.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class SevenDaySelectTipSp extends GSprite
    {
        protected var _bg:GBitmap;
        protected var _daySkin:GBitmap;
        private var _dayNum:int = 1;

        public function SevenDaySelectTipSp()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._bg = UIFactory.gBitmap(ImagesConst.SevenDaySelectBg, 0, 0, this);
            this._daySkin = UIFactory.gBitmap(ImagesConst.SevenDaySelect1, 24, 17, this);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._dayNum = 1;
            this._bg = null;
            this._daySkin = null;
            return;
        }// end function

        public function updateDayNum(param1:int) : void
        {
            if (this._dayNum == param1)
            {
                return;
            }
            this._dayNum = param1;
            this._daySkin.dispose();
            this._daySkin = UIFactory.gBitmap(ImagesConst["SevenDaySelect" + param1], 24, 17, this);
            return;
        }// end function

    }
}
